﻿<%@ Page Title="Templates" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Templates_Default" %>
<%@ Register src="Header.ascx" tagname="Tabs" tagprefix="uc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="phActions" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="phSubMenu" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="phMain" Runat="Server">
    <div class="tabMenu">
        <uc:Tabs ID="ucTabs" runat="server" />
    </div>
    
    <div class="tabPage">
        <div class="actions clearfix">
            <div class="floatRight">
                <asp:LinkButton ID="lnkAdd" CssClass="actionBtn abAdd" runat="server">
                    <div class="tl">
                        <div class="tr">
                            <div class="bl">
                                <div class="br">
                                    <span>Create New Template</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:LinkButton>
                
                <%--<asp:LinkButton ID="lnkAdd" CssClass="btnAddLarge" Text="Create New Template" runat="server" />--%>
            </div>
        </div>
        
        <telerik:RadGrid ID="gridTemplates"
                SkinID="InlineEdit"
                AutoGenerateColumns="false"
                AllowAutomaticDeletes="true"
                AllowAutomaticUpdates="true"
                AllowAutomaticInserts="true"
                DataSourceID="dsTemplates"
                runat="server">
            <MasterTableView DataKeyNames="Id,ConcurencyId">
                <Columns>
                    <acms:RadGridTextBoxColumn HeaderText="Name" DataField="Name" Required="true" />
                    <acms:RadGridTextAreaColumn HeaderText="Notes" DataField="Notes" />
                    <acms:RadGridRadioButtonListColumn HeaderText="Node Type" DataField="NodeType" DataValueField="NodeType" DataSourceID="dsNodeType" RadioButtonDisplayField="Name" RadioButtonValueField="Name" DataDisplayCssClassField="NodeType" DataDisplayCssClassFormat="keyIcon nt{0}" RadioButtonLabelCssClassField="Name" RadioButtonLabelCssClassFormat="keyIcon nt{0}" Required="true" LabelPosition="Before" />
                    <telerik:GridButtonColumn CommandName="Select" Text="Select" />  
                    <acms:RadGridEditColumn/>  
                    <acms:RadGridDeleteColumn />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
        <acms:TemplateDataSource ID="dsTemplates" OnSelectData="dsTemplates_SelectData" runat="server" />
        <acms:EventDrivenDataSource ID="dsNodeType" runat="server" />
    </div>
</asp:Content>

